import Dile_Methods from "@/utils/methods";
import { object_Inf } from "@/utils/typings/index.type";
import Base_Echart from "@/views/dashboardManage/echartOperate/base";
import Utils_Base from "../utils-base";

/*
 * @Descripttion:设备状态工具类
 * @LastEditors: xzh
 * @LastEditTime: 2024-05-11 02:26:18
 */
export default class Utils_EquipState extends Utils_Base {
  /**
   * @Author: xzh
   * @Descripttion:获取设备报警图表
   * @Param:
   */
  static getEquipWarningChart(data: object_Inf, param: object_Inf = {}) {
    return Base_Echart.formatChartData_bar(
      {
        ...data,
        color: ["#4472c4", "#ed7d31", "#a5a5a5", "#ffc000"],
      },
      param
    );
  }
}
